package com.zzy.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzy.product.vo.AttrGroupRelationVo;
import com.zzy.product.vo.AttrRespVo;
import com.zzy.product.vo.AttrVo;
import com.zzy.utils.utils.PageUtils;
import com.zzy.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author kazu
 * @email kazu_zhang@163.com
 * @date 2023-02-01 21:39:21
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);
	
	void saveAttr(AttrVo attr);
	
	PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String attrType);
	
	AttrRespVo getAttrInfo(Long attrId);
	
	void updateAttr(AttrVo attr);
	
	List<AttrEntity> getRelationInfo(Long attrgroupId);
	
	void deleteRelation(AttrGroupRelationVo[] vos);
	
	PageUtils getNoAttrRelation(Long attrgroupId, Map<String, Object> params);
}

